package jgl.vajra.operator.part.login.model;

import java.util.Map;

import io.reactivex.Observable;
import jgl.vajra.operator.part.login.contract.BindMachineBossContract;
import jgl.vajra.operator.widget.bean.BaseRequestData;
import jgl.vajra.operator.widget.manager.RxJavaHttpManager;
import jgl.vajra.operator.widget.manager.retrofit.RetrofitJsonManager;
import jgl.vajra.operator.widget.retrofithelper.rxschedulers.RxSchedulersHelper;

public class BindMachineBossModel extends BindMachineBossContract.Model {
    @Override
    public Observable<BaseRequestData<String>> getVerifyCode(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().getVerifyCode(map).compose(RxSchedulersHelper.applyIoTransformer());
    }

    @Override
    public Observable<Object> bindMachineData(Map<String, Object> map) {
        return RetrofitJsonManager.getInstance().getApiService().bindMachineData(map).compose(RxJavaHttpManager.applyTransformer());
    }
}
